package display;

import java.awt.Color;

public class RGBColor {

Color PixelColor;
	
public RGBColor()
{
PixelColor=new Color(0, 0, 0);		
}


public RGBColor(int Red,int Green,int Blue)
{
PixelColor=new Color(Red, Green, Blue);	
}


public RGBColor(short color)
{
PixelColor=new Color((color & 0xf)<<4, (color & 0xf0), (color & 0xf00)>>4);	
}


public void  SetColor(int Red,int Green,int Blue)
{
PixelColor=new Color(Red, Green, Blue);	
}


public void  SetColor(Color newColor)
{
PixelColor=newColor;	
}

public Color GetColor()
{
return(PixelColor);	
}

}
